import {Component, OnInit} from '@angular/core';
import {Title} from '@angular/platform-browser';
import project from '../../package.json';
import {NzIconService} from 'ng-zorro-antd';
import {CommonParams} from '../utils/common-params';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less']
})
export class AppComponent implements OnInit {

  constructor(private title: Title, private iconService: NzIconService) {
    this.iconService.fetchFromIconfont({
      scriptUrl: CommonParams.ALI_ICON_FONT_URL
    });
  }

  ngOnInit(): void {
    this.title.setTitle(project.description);
  }

}
